#!/usr/bin/env python
# coding:utf-8
from django.conf.urls import url
from snippets import views
from rest_framework.urlpatterns import format_suffix_patterns
# from rest_framework import routers
# router = routers.DefaultRouter()
# router.register(r'maohao_infoViewSet', views.maohao_infoViewSet)
# router.register(r'groups', views.GroupViewSet)
urlpatterns = [
    url(r'^snippets/$', views.snippet_list),
    url(r'^snippets/(?P<pk>[0-9]+)/$', views.snippet_detail),
    url(r'^Department/$', views.Department_list),
    url(r'^Department/(?P<pk>[0-9]+)/$', views.Department_detail),
    url(r'^maohao_info/$', views.maohao_info_list),
    url(r'^maohao_info/(?P<pk>[0-9]+)/$', views.maohao_info_detail),
]

urlpatterns = format_suffix_patterns(urlpatterns)
